From: Keir Fraser Date: Fri, 4 Dec 2009 07:00:25 +0000 (+0000) Subject: xend: Fix parameters to PyArg_ParseTupleAndKeywords() X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12965 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=78eed7d0445b3d8d16beb526128544b12e928343;p=xen.git xend: Fix parameters to PyArg_ParseTupleAndKeywords() The kwd_list parameter PyArg_ParseTupleAndKeywords() must be a NULL-terminated list. Signed-off-by: KUWAMURA Shin'ya --- diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 7ad2871765..83096048cd 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -406,7 +406,7 @@ static PyObject *pyxc_getBitSize(XcObject *self, PyObject *info_type; char *image = NULL, *cmdline = "", *features = NULL; int type = 0; - static char *kwd_list[] = { "image", "cmdline", "features"}; + static char *kwd_list[] = { "image", "cmdline", "features", NULL }; if ( !PyArg_ParseTupleAndKeywords(args, kwds, "sss", kwd_list, &image, &cmdline, &features) ) return NULL; @@ -1642,7 +1642,7 @@ static PyObject *pyxc_tmem_shared_auth(XcObject *self, char *uuid_str; int rc; - static char *kwd_list[] = { "cli_id", "uuid_str", "arg1" }; + static char *kwd_list[] = { "cli_id", "uuid_str", "arg1", NULL }; if ( !PyArg_ParseTupleAndKeywords(args, kwds, "isi", kwd_list, &cli_id, &uuid_str, &arg1) )